<?php
class cls_serve_comment extends cls_serve_base
{
	function add_comment($customerid, $productid, $productcomment, $imagepath)
	{
		$comment_data = cls_data_base::get_instance($this->name);
		
		$result = $comment_data->add_comment($customerid, $productid, $productcomment, $imagepath);
		
		if($result >0)
		{
			return return_info(true, $result);
		}
		else
		{
			return return_info(false);
		}
	}
}
?>